<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Kestra - VSCode</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<script>
    const queryParams = Object.fromEntries(
        window.location.search.substring(1)
            .split("&")
            .map(str => str.split("="))
    );
    const KESTRA_UI_PATH = queryParams["KESTRA_UI_PATH"];
    const KESTRA_API_URL = queryParams["KESTRA_API_URL"];
    const THEME = queryParams["THEME"];

    const style = document.createElement('style');
    style.setAttribute('type', 'text/css');
    style.innerHTML = 'html { background-color: ' + (THEME === 'dark' ? '#21242E' : '#F5F5FF') + '; }';
    document.getElementsByTagName('head')[0].appendChild(style);
</script>

<script src="./vscode-web/dist/out/vs/loader.js"></script>
<script src="./vscode-web/dist/out/vs/webPackagePaths.js"></script>
<script src="./init.js"></script>
<script src="./vscode-web/dist/out/vs/workbench/workbench.web.main.nls.js"></script>
<script src="./vscode-web/dist/out/vs/workbench/workbench.web.main.js"></script>
<script src="./vscode-web/dist/out/vs/code/browser/workbench/workbench.js"></script>
</body>
</html>
